History

fanotify: update connector fsid cache on add mark

When implementing connector fsid cache, we only initialized the cache when the first mark added to object was added by FAN_REPORT_FID group. We forgot to update conn->fsid when the second mark is added by FAN_REPORT_FID group to an already attached connector without fsid cache.

Amir Goldstein committed 7 years ago

Commit c285a2f1 parent c6d9c353 files · +18 −4Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/fsnotify_backend.h+3−1
@@ -292,7 +292,9 @@ typedef struct fsnotify_mark_connector __rcu *fsnotify_connp_t; · 291 unmodified lines
292292 */
293293 struct fsnotify_mark_connector {
294294 spinlock_t lock;
295− unsigned int type; /* Type of object [lock] */
295+ unsigned short type; /* Type of object [lock] */
296+#define FSNOTIFY_CONN_FLAG_HAS_FSID 0x01
297+ unsigned short flags; /* flags [lock] */
296298 __kernel_fsid_t fsid; /* fsid of filesystem containing object */
297299 union {
298300 /* Object pointer [lock] */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t