diff options
author | Gabriel Krisman Bertazi <krisman@collabora.com> | 2021-10-25 21:27:25 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-10-27 12:33:52 +0200 |
commit | 29335033c574a15334015d8c4e36862cff3d3384 (patch) | |
tree | adbfffb55e78c372ff6d6048f386228221780e6e /fs/nfsd | |
parent | fsnotify: Add wrapper around fsnotify_add_event (diff) | |
download | linux-29335033c574a15334015d8c4e36862cff3d3384.tar.xz linux-29335033c574a15334015d8c4e36862cff3d3384.zip |
fsnotify: Retrieve super block from the data field
Some file system events (i.e. FS_ERROR) might not be associated with an
inode or directory. For these, we can retrieve the super block from the
data field. But, since the super_block is available in the data field
on every event type, simplify the code to always retrieve it from there,
through a new helper.
Link: https://lore.kernel.org/r/20211025192746.66445-11-krisman@collabora.com
Suggested-by: Jan Kara <jack@suse.cz>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/nfsd')
0 files changed, 0 insertions, 0 deletions