fanotify: simplify fanotify_error_event_equal
Subsystems (3)
PATCH 1/1 fanotify: simplify fanotify_error_event_equal
Return the result of calling fanotify_fsid_equal() directly to simplify the code.
Signed-off-by Thorsten Blum <[email protected]>
--- fs/notify/fanotify/fanotify.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
fs/notify/fanotify/fanotify.c +1 -4
@@ -120,10 +120,7 @@ static bool fanotify_error_event_equal(struct fanotify_error_event *fee1, struct fanotify_error_event *fee2) {/* Error events against the same file system are always merged. */ -if (!fanotify_fsid_equal (&fee1->fsid, &fee2->fsid)) -return false; - -return true; +return fanotify_fsid_equal (&fee1->fsid, &fee2->fsid); } static bool fanotify_should_merge(struct fanotify_event *old,
Jan Kara
maintainerQuoted 4 lines · Thorsten Blum
Return the result of calling
fanotify_fsid_equal()directly to simplify the code.Signed-off-by Thorsten Blum <[email protected]>
Thanks. I've added the patch to my tree.
Honza
Quoted 20 lines
--- fs/notify/fanotify/fanotify.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)fs/notify/fanotify/fanotify.c +1
-4@@ -120,10 +120,7 @@ static bool fanotify_error_event_equal(struct fanotify_error_event *fee1, struct fanotify_error_event *fee2) {/* Error events against the same file system are always merged. */ -if (!fanotify_fsid_equal (&fee1->fsid, &fee2->fsid)) -return false; - -return true; +return fanotify_fsid_equal (&fee1->fsid, &fee2->fsid); } static bool fanotify_should_merge(struct fanotify_event *old,
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR