diff options
author | Gabriel Krisman Bertazi <[email protected]> | 2021-10-25 16:27:25 -0300 |
---|---|---|
committer | Jan Kara <[email protected]> | 2021-10-27 12:33:52 +0200 |
commit | 29335033c574a15334015d8c4e36862cff3d3384 (patch) | |
tree | adbfffb55e78c372ff6d6048f386228221780e6e /drivers/usb/cdns3/cdns3-trace.c | |
parent | 1ad03c3a326a86e259389592117252c851873395 (diff) |
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/[email protected]
Suggested-by: Jan Kara <[email protected]>
Reviewed-by: Amir Goldstein <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Gabriel Krisman Bertazi <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions