Skip to contentSkip to conversation

fs/notify: cleanup

PATCH In review Fabian Frederick 3 participants 5 messages May 12, 2020 – May 13, 2020 VFS

lore
Share & tools
lore
#0 lore raw

v2 cover fs/notify: cleanup

This small patchset does some cleanup in fs/notify branch especially in fanotify.

V2:
Apply Amir Goldstein suggestions:
-Remove patch 2, 7 and 9
-Patch "fanotify: don't write with zero size" -> "fanotify: don't write with size under sizeof(response)"

Fabian Frederick (6):
fanotify: prefix should_merge()
notify: explicit shutdown initialization
notify: add mutex destroy
fanotify: remove reference to fill_event_metadata() fsnotify/fdinfo: remove proc_fs.h inclusion
fanotify: don't write with size under sizeof(response)

 fs/notify/fanotify/fanotify.c      | 4 ++--
 fs/notify/fanotify/fanotify_user.c | 8 +++++---
 fs/notify/fdinfo.c                 | 1 -
 fs/notify/group.c                  | 2 ++
 4 files changed, 9 insertions(+), 6 deletions(-)
Signature · 1 line
2.26.2
#1 lore raw
Quoted 3 lines · Fabian Frederick

This small patchset does some cleanup in fs/notify branch especially in fanotify.

Patches look fine to me.
I would just change the subject of patches from notify: to fsnotify:. The patch "explicit shutdown initialization" is border line unneeded and its subject is not very descriptive.
Let's wait and see what Jan has to say before you post another round.

Thanks,
Amir.

Quoted 24 lines

V2:
Apply Amir Goldstein suggestions:

(quoted diff) +0 -2
-Remove patch 2, 7 and 9
-Patch "fanotify: don't write with zero size" ->

"fanotify: don't write with size under sizeof(response)"

Fabian Frederick (6):
fanotify: prefix should_merge()
notify: explicit shutdown initialization
notify: add mutex destroy
fanotify: remove reference to fill_event_metadata() fsnotify/fdinfo: remove proc_fs.h inclusion
fanotify: don't write with size under sizeof(response)

 fs/notify/fanotify/fanotify.c      | 4 ++--
 fs/notify/fanotify/fanotify_user.c | 8 +++++---
 fs/notify/fdinfo.c                 | 1 -
 fs/notify/group.c                  | 2 ++
 4 files changed, 9 insertions(+), 6 deletions(-)

--
2.26.2

reviewer
#2 lore raw
Quoted 10 lines · Amir Goldstein
Quoted 3 lines · Fabian Frederick

This small patchset does some cleanup in fs/notify branch especially in fanotify.

Patches look fine to me.
I would just change the subject of patches from notify: to fsnotify:. The patch "explicit shutdown initialization" is border line unneeded and its subject is not very descriptive.
Let's wait and see what Jan has to say before you post another round.

Yeah, I think patch 2 doesn't make sence but the rest looks good. Can I add your Reviewed-by Amir when merging them?

Honza

Quoted 23 lines
Quoted 23 lines

V2:
Apply Amir Goldstein suggestions:

(quoted diff) +0 -2
-Remove patch 2, 7 and 9
-Patch "fanotify: don't write with zero size" ->

"fanotify: don't write with size under sizeof(response)"

Fabian Frederick (6):
fanotify: prefix should_merge()
notify: explicit shutdown initialization
notify: add mutex destroy
fanotify: remove reference to fill_event_metadata() fsnotify/fdinfo: remove proc_fs.h inclusion
fanotify: don't write with size under sizeof(response)

 fs/notify/fanotify/fanotify.c      | 4 ++--
 fs/notify/fanotify/fanotify_user.c | 8 +++++---
 fs/notify/fdinfo.c                 | 1 -
 fs/notify/group.c                  | 2 ++
 4 files changed, 9 insertions(+), 6 deletions(-)

--
2.26.2

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#3 lore raw
Quoted 7 lines · Jan Kara
Quoted 5 lines · Amir Goldstein
Quoted 3 lines · Fabian Frederick

This small patchset does some cleanup in fs/notify branch especially in fanotify.

Quoted 8 lines
Quoted 5 lines

Patches look fine to me.
I would just change the subject of patches from notify: to fsnotify:. The patch "explicit shutdown initialization" is border line unneeded and its subject is not very descriptive.
Let's wait and see what Jan has to say before you post another round.

Yeah, I think patch 2 doesn't make sence but the rest looks good. Can I add your Reviewed-by Amir when merging them?

Yes.

Thanks,
Amir.

reviewer
#4 lore raw
Quoted 14 lines · Amir Goldstein
Quoted 13 lines · Jan Kara
Quoted 10 lines · Amir Goldstein
Quoted 3 lines · Fabian Frederick

This small patchset does some cleanup in fs/notify branch especially in fanotify.

Patches look fine to me.
I would just change the subject of patches from notify: to fsnotify:. The patch "explicit shutdown initialization" is border line unneeded and its subject is not very descriptive.
Let's wait and see what Jan has to say before you post another round.

Quoted 4 lines
Quoted 2 lines

Yeah, I think patch 2 doesn't make sence but the rest looks good. Can I add your Reviewed-by Amir when merging them?

Yes.

Thanks. Fabian, I've merged the cleanups to my tree.

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR