diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2008-08-06 09:12:22 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-09-29 17:56:57 -0400 |
commit | bfcd17a6c5529bc37234cfa720a047cf9397bcfc (patch) | |
tree | f4e087479a8c559f1a5ca3be96c64afd172e12c1 /fs/Kconfig | |
parent | 04716e6621ff4abb422d64ba7b48718f52716a3e (diff) |
Configure out file locking features
This patch adds the CONFIG_FILE_LOCKING option which allows to remove
support for advisory locks. With this patch enabled, the flock()
system call, the F_GETLK, F_SETLK and F_SETLKW operations of fcntl()
and NFS support are disabled. These features are not necessarly needed
on embedded systems. It allows to save ~11 Kb of kernel code and data:
text data bss dec hex filename
1125436 118764 212992 1457192 163c28 vmlinux.old
1114299 118564 212992 1445855 160fdf vmlinux
-11137 -200 0 -11337 -2C49 +/-
This patch has originally been written by Matt Mackall
<mpm@selenic.com>, and is part of the Linux Tiny project.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Cc: matthew@wil.cx
Cc: linux-fsdevel@vger.kernel.org
Cc: mpm@selenic.com
Cc: akpm@linux-foundation.org
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/Kconfig')
-rw-r--r-- | fs/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/Kconfig b/fs/Kconfig index abccb5dab9a8..c6ae4d4842eb 100644 --- a/fs/Kconfig +++ b/fs/Kconfig | |||
@@ -419,6 +419,14 @@ config FS_POSIX_ACL | |||
419 | bool | 419 | bool |
420 | default n | 420 | default n |
421 | 421 | ||
422 | config FILE_LOCKING | ||
423 | bool "Enable POSIX file locking API" if EMBEDDED | ||
424 | default y | ||
425 | help | ||
426 | This option enables standard file locking support, required | ||
427 | for filesystems like NFS and for the flock() system | ||
428 | call. Disabling this option saves about 11k. | ||
429 | |||
422 | source "fs/xfs/Kconfig" | 430 | source "fs/xfs/Kconfig" |
423 | source "fs/gfs2/Kconfig" | 431 | source "fs/gfs2/Kconfig" |
424 | 432 | ||