aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index cf7bc25928c..78987e9a384 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -17,8 +17,8 @@
17 * nr_file rlimit, so it's safe to set up a ridiculously high absolute 17 * nr_file rlimit, so it's safe to set up a ridiculously high absolute
18 * upper limit on files-per-process. 18 * upper limit on files-per-process.
19 * 19 *
20 * Some programs (notably those using select()) may have to be 20 * Some programs (notably those using select()) may have to be
21 * recompiled to take full advantage of the new limits.. 21 * recompiled to take full advantage of the new limits..
22 */ 22 */
23 23
24/* Fixed constants first: */ 24/* Fixed constants first: */
@@ -173,7 +173,7 @@ struct inodes_stat_t {
173#define SEL_EX 4 173#define SEL_EX 4
174 174
175/* public flags for file_system_type */ 175/* public flags for file_system_type */
176#define FS_REQUIRES_DEV 1 176#define FS_REQUIRES_DEV 1
177#define FS_BINARY_MOUNTDATA 2 177#define FS_BINARY_MOUNTDATA 2
178#define FS_HAS_SUBTYPE 4 178#define FS_HAS_SUBTYPE 4
179#define FS_REVAL_DOT 16384 /* Check the paths ".", ".." for staleness */ 179#define FS_REVAL_DOT 16384 /* Check the paths ".", ".." for staleness */
@@ -481,7 +481,7 @@ struct iattr {
481 */ 481 */
482#include <linux/quota.h> 482#include <linux/quota.h>
483 483
484/** 484/**
485 * enum positive_aop_returns - aop return codes with specific semantics 485 * enum positive_aop_returns - aop return codes with specific semantics
486 * 486 *
487 * @AOP_WRITEPAGE_ACTIVATE: Informs the caller that page writeback has 487 * @AOP_WRITEPAGE_ACTIVATE: Informs the caller that page writeback has
@@ -491,7 +491,7 @@ struct iattr {
491 * be a candidate for writeback again in the near 491 * be a candidate for writeback again in the near
492 * future. Other callers must be careful to unlock 492 * future. Other callers must be careful to unlock
493 * the page if they get this return. Returned by 493 * the page if they get this return. Returned by
494 * writepage(); 494 * writepage();
495 * 495 *
496 * @AOP_TRUNCATED_PAGE: The AOP method that was handed a locked page has 496 * @AOP_TRUNCATED_PAGE: The AOP method that was handed a locked page has
497 * unlocked it and the page might have been truncated. 497 * unlocked it and the page might have been truncated.
@@ -735,6 +735,7 @@ static inline int mapping_writably_mapped(struct address_space *mapping)
735 735
736struct posix_acl; 736struct posix_acl;
737#define ACL_NOT_CACHED ((void *)(-1)) 737#define ACL_NOT_CACHED ((void *)(-1))
738struct inode_obj_id_table;
738 739
739#define IOP_FASTPERM 0x0001 740#define IOP_FASTPERM 0x0001
740#define IOP_LOOKUP 0x0002 741#define IOP_LOOKUP 0x0002
@@ -1048,10 +1049,10 @@ static inline int file_check_writeable(struct file *filp)
1048 1049
1049#define MAX_NON_LFS ((1UL<<31) - 1) 1050#define MAX_NON_LFS ((1UL<<31) - 1)
1050 1051
1051/* Page cache limit. The filesystems should put that into their s_maxbytes 1052/* Page cache limit. The filesystems should put that into their s_maxbytes
1052 limits, otherwise bad things can happen in VM. */ 1053 limits, otherwise bad things can happen in VM. */
1053#if BITS_PER_LONG==32 1054#if BITS_PER_LONG==32
1054#define MAX_LFS_FILESIZE (((u64)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1) 1055#define MAX_LFS_FILESIZE (((u64)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1)
1055#elif BITS_PER_LONG==64 1056#elif BITS_PER_LONG==64
1056#define MAX_LFS_FILESIZE 0x7fffffffffffffffUL 1057#define MAX_LFS_FILESIZE 0x7fffffffffffffffUL
1057#endif 1058#endif
@@ -2282,7 +2283,7 @@ extern void free_write_pipe(struct file *);
2282 2283
2283extern int kernel_read(struct file *, loff_t, char *, unsigned long); 2284extern int kernel_read(struct file *, loff_t, char *, unsigned long);
2284extern struct file * open_exec(const char *); 2285extern struct file * open_exec(const char *);
2285 2286
2286/* fs/dcache.c -- generic fs support functions */ 2287/* fs/dcache.c -- generic fs support functions */
2287extern int is_subdir(struct dentry *, struct dentry *); 2288extern int is_subdir(struct dentry *, struct dentry *);
2288extern int path_is_under(struct path *, struct path *); 2289extern int path_is_under(struct path *, struct path *);