Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135931
b: refs/heads/master
c: af5df56
h: refs/heads/master
i:
  135929: fa37da8
  135927: 964139f
v: v3
  • Loading branch information
Steven Whitehouse authored and Al Viro committed Mar 27, 2009
1 parent 9c34b30 commit c7e22c9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2aca5e529a2499d454c41e01f59f1d5fe4a1364
refs/heads/master: af5df56688acfb75c1b15b4e000ec5e82a9cdc29
45 changes: 38 additions & 7 deletions trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1800,13 +1800,44 @@ static inline int break_lease(struct inode *inode, unsigned int mode)
return 0;
}
#else /* !CONFIG_FILE_LOCKING */
#define locks_mandatory_locked(a) ({ 0; })
#define locks_mandatory_area(a, b, c, d, e) ({ 0; })
#define __mandatory_lock(a) ({ 0; })
#define mandatory_lock(a) ({ 0; })
#define locks_verify_locked(a) ({ 0; })
#define locks_verify_truncate(a, b, c) ({ 0; })
#define break_lease(a, b) ({ 0; })
static inline int locks_mandatory_locked(struct inode *inode)
{
return 0;
}

static inline int locks_mandatory_area(int rw, struct inode *inode,
struct file *filp, loff_t offset,
size_t count)
{
return 0;
}

static inline int __mandatory_lock(struct inode *inode)
{
return 0;
}

static inline int mandatory_lock(struct inode *inode)
{
return 0;
}

static inline int locks_verify_locked(struct inode *inode)
{
return 0;
}

static inline int locks_verify_truncate(struct inode *inode, struct file *filp,
size_t size)
{
return 0;
}

static inline int break_lease(struct inode *inode, unsigned int mode)
{
return 0;
}

#endif /* CONFIG_FILE_LOCKING */

/* fs/open.c */
Expand Down

0 comments on commit c7e22c9

Please sign in to comment.