mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
Merge tag 'pull-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull misc vfs updates from Al Viro: "misc pile" * tag 'pull-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: fs: sysv: Fix sysv_nblocks() returns wrong value get rid of INT_LIMIT, use type_max() instead btrfs: replace INT_LIMIT(loff_t) with OFFSET_MAX fs: simplify vfs_get_super fs: drop useless condition from inode_needs_update_time
This commit is contained in:
@@ -1131,9 +1131,8 @@ struct file_lock_context {
|
||||
|
||||
/* The following constant reflects the upper bound of the file/locking space */
|
||||
#ifndef OFFSET_MAX
|
||||
#define INT_LIMIT(x) (~((x)1 << (sizeof(x)*8 - 1)))
|
||||
#define OFFSET_MAX INT_LIMIT(loff_t)
|
||||
#define OFFT_OFFSET_MAX INT_LIMIT(off_t)
|
||||
#define OFFSET_MAX type_max(loff_t)
|
||||
#define OFFT_OFFSET_MAX type_max(off_t)
|
||||
#endif
|
||||
|
||||
extern void send_sigio(struct fown_struct *fown, int fd, int band);
|
||||
|
||||
Reference in New Issue
Block a user