Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80ef6f34 authored by Bernhard Thoben's avatar Bernhard Thoben
Browse files

include: linux: Added missing function declarations, struct members and constants.

Change-Id: I5e3797114808d29d1efa6f90048dd3f355702f12
parent 59f67706
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -610,6 +610,7 @@ struct inode {

	/* Misc */
	unsigned long		i_state;
	struct rw_semaphore	i_rwsem;
	struct mutex		i_mutex;

	unsigned long		dirtied_when;	/* jiffies of first dirtying */
@@ -682,6 +683,16 @@ enum inode_i_mutex_lock_class
	I_MUTEX_QUOTA
};

static inline void inode_lock(struct inode *inode)
{
	down_write(&inode->i_rwsem);
}

static inline void inode_unlock(struct inode *inode)
{
	up_write(&inode->i_rwsem);
}

/*
 * NOTE: in a 32bit arch with a preemptable kernel and
 * an UP compile the i_size_read/write must be atomic
+11 −0
Original line number Diff line number Diff line
@@ -269,6 +269,17 @@ extern struct page * find_get_page(struct address_space *mapping,
pgoff_t page_cache_next_hole(struct address_space *mapping,
                             pgoff_t index, unsigned long max_scan);

#define FGP_ACCESSED		0x00000001

struct page *pagecache_get_page(struct address_space *mapping, pgoff_t offset,
		int fgp_flags, gfp_t cache_gfp_mask);

static inline struct page *find_get_page_flags(struct address_space *mapping,
					pgoff_t offset, int fgp_flags)
{
	return pagecache_get_page(mapping, offset, fgp_flags, 0);
}

extern struct page * find_lock_page(struct address_space *mapping,
				pgoff_t index);
extern struct page * find_or_create_page(struct address_space *mapping,