linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Shrink fanotify_event_metadata by 32 bits
@ 2010-11-20  5:08 Alexey Zaytsev
  2010-11-20 21:03 ` Alexey Zaytsev
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Zaytsev @ 2010-11-20  5:08 UTC (permalink / raw)
  To: Eric Paris; +Cc: linux-fsdevel, linux-kernel

There seems to be no point wasting 32 bits for either the event version or length

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
---

Hi.

While I'm working on the file modification events,
please consider this patch. It obviously breaks
the userspace ABI. But maybe that's acceptable, given
that no kernel has ever been released with the old ABI.

And the users only need to recompile their code, without
changing anything.

If we agree that this change is desirable, please make sure
it makes it to Linus before the release. ;)


 include/linux/fanotify.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h
index 0f01214..9a7986f 100644
--- a/include/linux/fanotify.h
+++ b/include/linux/fanotify.h
@@ -86,10 +86,11 @@
 #define FANOTIFY_METADATA_VERSION	2
 
 struct fanotify_event_metadata {
-	__u32 event_len;
-	__u32 vers;
-	__aligned_u64 mask;
+	__u16 event_len;
+	__u8 vers;
+	__u8 reserved;
 	__s32 fd;
+	__aligned_u64 mask;
 	__s32 pid;
 };
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-20 21:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-20  5:08 [PATCH] Shrink fanotify_event_metadata by 32 bits Alexey Zaytsev
2010-11-20 21:03 ` Alexey Zaytsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).