diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 134b32068246..555bc195c420 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -27,6 +27,10 @@ | |||
27 | #define BLOCK_SIZE_BITS 10 | 27 | #define BLOCK_SIZE_BITS 10 |
28 | #define BLOCK_SIZE (1<<BLOCK_SIZE_BITS) | 28 | #define BLOCK_SIZE (1<<BLOCK_SIZE_BITS) |
29 | 29 | ||
30 | #define SEEK_SET 0 /* seek relative to beginning of file */ | ||
31 | #define SEEK_CUR 1 /* seek relative to current file position */ | ||
32 | #define SEEK_END 2 /* seek relative to end of file */ | ||
33 | |||
30 | /* And dynamically-tunable limits and defaults: */ | 34 | /* And dynamically-tunable limits and defaults: */ |
31 | struct files_stat_struct { | 35 | struct files_stat_struct { |
32 | int nr_files; /* read only */ | 36 | int nr_files; /* read only */ |
@@ -566,13 +570,14 @@ struct inode { | |||
566 | * 3: quota file | 570 | * 3: quota file |
567 | * | 571 | * |
568 | * The locking order between these classes is | 572 | * The locking order between these classes is |
569 | * parent -> child -> normal -> quota | 573 | * parent -> child -> normal -> xattr -> quota |
570 | */ | 574 | */ |
571 | enum inode_i_mutex_lock_class | 575 | enum inode_i_mutex_lock_class |
572 | { | 576 | { |
573 | I_MUTEX_NORMAL, | 577 | I_MUTEX_NORMAL, |
574 | I_MUTEX_PARENT, | 578 | I_MUTEX_PARENT, |
575 | I_MUTEX_CHILD, | 579 | I_MUTEX_CHILD, |
580 | I_MUTEX_XATTR, | ||
576 | I_MUTEX_QUOTA | 581 | I_MUTEX_QUOTA |
577 | }; | 582 | }; |
578 | 583 | ||
@@ -716,6 +721,7 @@ extern spinlock_t files_lock; | |||
716 | #define FL_POSIX 1 | 721 | #define FL_POSIX 1 |
717 | #define FL_FLOCK 2 | 722 | #define FL_FLOCK 2 |
718 | #define FL_ACCESS 8 /* not trying to lock, just looking */ | 723 | #define FL_ACCESS 8 /* not trying to lock, just looking */ |
724 | #define FL_EXISTS 16 /* when unlocking, test for existence */ | ||
719 | #define FL_LEASE 32 /* lease held on this file */ | 725 | #define FL_LEASE 32 /* lease held on this file */ |
720 | #define FL_CLOSE 64 /* unlock on close */ | 726 | #define FL_CLOSE 64 /* unlock on close */ |
721 | #define FL_SLEEP 128 /* A blocking lock */ | 727 | #define FL_SLEEP 128 /* A blocking lock */ |