fs.h (ea77f7a2e8561012cf100c530170f12351c3b53e) fs.h (aa38572954ade525817fe88c54faebf85e5a61c0)
1#ifndef _LINUX_FS_H
2#define _LINUX_FS_H
3
4/*
5 * This file has definitions for some important file table
6 * structures etc.
7 */
8

--- 9 unchanged lines hidden (view full) ---

18 * upper limit on files-per-process.
19 *
20 * Some programs (notably those using select()) may have to be
21 * recompiled to take full advantage of the new limits..
22 */
23
24/* Fixed constants first: */
25#undef NR_OPEN
1#ifndef _LINUX_FS_H
2#define _LINUX_FS_H
3
4/*
5 * This file has definitions for some important file table
6 * structures etc.
7 */
8

--- 9 unchanged lines hidden (view full) ---

18 * upper limit on files-per-process.
19 *
20 * Some programs (notably those using select()) may have to be
21 * recompiled to take full advantage of the new limits..
22 */
23
24/* Fixed constants first: */
25#undef NR_OPEN
26#define INR_OPEN 1024 /* Initial setting for nfile rlimits */
26#define INR_OPEN_CUR 1024 /* Initial setting for nfile rlimits */
27#define INR_OPEN_MAX 4096 /* Hard limit for nfile rlimits */
27
28#define BLOCK_SIZE_BITS 10
29#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
30
31#define SEEK_SET 0 /* seek relative to beginning of file */
32#define SEEK_CUR 1 /* seek relative to current file position */
33#define SEEK_END 2 /* seek relative to end of file */
34#define SEEK_MAX SEEK_END

--- 594 unchanged lines hidden (view full) ---

629struct backing_dev_info;
630struct address_space {
631 struct inode *host; /* owner: inode, block_device */
632 struct radix_tree_root page_tree; /* radix tree of all pages */
633 spinlock_t tree_lock; /* and lock protecting it */
634 unsigned int i_mmap_writable;/* count VM_SHARED mappings */
635 struct prio_tree_root i_mmap; /* tree of private and shared mappings */
636 struct list_head i_mmap_nonlinear;/*list VM_NONLINEAR mappings */
28
29#define BLOCK_SIZE_BITS 10
30#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
31
32#define SEEK_SET 0 /* seek relative to beginning of file */
33#define SEEK_CUR 1 /* seek relative to current file position */
34#define SEEK_END 2 /* seek relative to end of file */
35#define SEEK_MAX SEEK_END

--- 594 unchanged lines hidden (view full) ---

630struct backing_dev_info;
631struct address_space {
632 struct inode *host; /* owner: inode, block_device */
633 struct radix_tree_root page_tree; /* radix tree of all pages */
634 spinlock_t tree_lock; /* and lock protecting it */
635 unsigned int i_mmap_writable;/* count VM_SHARED mappings */
636 struct prio_tree_root i_mmap; /* tree of private and shared mappings */
637 struct list_head i_mmap_nonlinear;/*list VM_NONLINEAR mappings */
637 spinlock_t i_mmap_lock; /* protect tree, count, list */
638 unsigned int truncate_count; /* Cover race condition with truncate */
638 struct mutex i_mmap_mutex; /* protect tree, count, list */
639 unsigned long nrpages; /* number of total pages */
640 pgoff_t writeback_index;/* writeback starts here */
641 const struct address_space_operations *a_ops; /* methods */
642 unsigned long flags; /* error bits/gfp mask */
643 struct backing_dev_info *backing_dev_info; /* device readahead, etc */
644 spinlock_t private_lock; /* for use by the address_space */
645 struct list_head private_list; /* ditto */
646 struct address_space *assoc_mapping; /* ditto */
639 unsigned long nrpages; /* number of total pages */
640 pgoff_t writeback_index;/* writeback starts here */
641 const struct address_space_operations *a_ops; /* methods */
642 unsigned long flags; /* error bits/gfp mask */
643 struct backing_dev_info *backing_dev_info; /* device readahead, etc */
644 spinlock_t private_lock; /* for use by the address_space */
645 struct list_head private_list; /* ditto */
646 struct address_space *assoc_mapping; /* ditto */
647 struct mutex unmap_mutex; /* to protect unmapping */
648} __attribute__((aligned(sizeof(long))));
649 /*
650 * On most architectures that alignment is already the case; but
651 * must be enforced here for CRIS, to let the least significant bit
652 * of struct page's "mapping" pointer be used for PAGE_MAPPING_ANON.
653 */
654
655struct block_device {

--- 768 unchanged lines hidden (view full) ---

1424 char *s_subtype;
1425
1426 /*
1427 * Saved mount options for lazy filesystems using
1428 * generic_show_options()
1429 */
1430 char __rcu *s_options;
1431 const struct dentry_operations *s_d_op; /* default d_op for dentries */
647} __attribute__((aligned(sizeof(long))));
648 /*
649 * On most architectures that alignment is already the case; but
650 * must be enforced here for CRIS, to let the least significant bit
651 * of struct page's "mapping" pointer be used for PAGE_MAPPING_ANON.
652 */
653
654struct block_device {

--- 768 unchanged lines hidden (view full) ---

1423 char *s_subtype;
1424
1425 /*
1426 * Saved mount options for lazy filesystems using
1427 * generic_show_options()
1428 */
1429 char __rcu *s_options;
1430 const struct dentry_operations *s_d_op; /* default d_op for dentries */
1431
1432 /*
1433 * Saved pool identifier for cleancache (-1 means none)
1434 */
1435 int cleancache_poolid;
1432};
1433
1434extern struct timespec current_fs_time(struct super_block *sb);
1435
1436/*
1437 * Snapshotting support.
1438 */
1439enum {

--- 169 unchanged lines hidden (view full) ---

1609 unsigned long, loff_t *);
1610extern ssize_t vfs_writev(struct file *, const struct iovec __user *,
1611 unsigned long, loff_t *);
1612
1613struct super_operations {
1614 struct inode *(*alloc_inode)(struct super_block *sb);
1615 void (*destroy_inode)(struct inode *);
1616
1436};
1437
1438extern struct timespec current_fs_time(struct super_block *sb);
1439
1440/*
1441 * Snapshotting support.
1442 */
1443enum {

--- 169 unchanged lines hidden (view full) ---

1613 unsigned long, loff_t *);
1614extern ssize_t vfs_writev(struct file *, const struct iovec __user *,
1615 unsigned long, loff_t *);
1616
1617struct super_operations {
1618 struct inode *(*alloc_inode)(struct super_block *sb);
1619 void (*destroy_inode)(struct inode *);
1620
1617 void (*dirty_inode) (struct inode *);
1621 void (*dirty_inode) (struct inode *, int flags);
1618 int (*write_inode) (struct inode *, struct writeback_control *wbc);
1619 int (*drop_inode) (struct inode *);
1620 void (*evict_inode) (struct inode *);
1621 void (*put_super) (struct super_block *);
1622 void (*write_super) (struct super_block *);
1623 int (*sync_fs)(struct super_block *sb, int wait);
1624 int (*freeze_fs) (struct super_block *);
1625 int (*unfreeze_fs) (struct super_block *);

--- 957 unchanged lines hidden ---
1622 int (*write_inode) (struct inode *, struct writeback_control *wbc);
1623 int (*drop_inode) (struct inode *);
1624 void (*evict_inode) (struct inode *);
1625 void (*put_super) (struct super_block *);
1626 void (*write_super) (struct super_block *);
1627 int (*sync_fs)(struct super_block *sb, int wait);
1628 int (*freeze_fs) (struct super_block *);
1629 int (*unfreeze_fs) (struct super_block *);

--- 957 unchanged lines hidden ---