• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/xfs/

Lines Matching refs:ip

174 #define XFS_IFORK_Q(ip)			((ip)->i_d.di_forkoff != 0)
175 #define XFS_IFORK_BOFF(ip) ((int)((ip)->i_d.di_forkoff << 3))
177 #define XFS_IFORK_PTR(ip,w) \
179 &(ip)->i_df : \
180 (ip)->i_afp)
181 #define XFS_IFORK_DSIZE(ip) \
182 (XFS_IFORK_Q(ip) ? \
183 XFS_IFORK_BOFF(ip) : \
184 XFS_LITINO((ip)->i_mount))
185 #define XFS_IFORK_ASIZE(ip) \
186 (XFS_IFORK_Q(ip) ? \
187 XFS_LITINO((ip)->i_mount) - XFS_IFORK_BOFF(ip) : \
189 #define XFS_IFORK_SIZE(ip,w) \
191 XFS_IFORK_DSIZE(ip) : \
192 XFS_IFORK_ASIZE(ip))
193 #define XFS_IFORK_FORMAT(ip,w) \
195 (ip)->i_d.di_format : \
196 (ip)->i_d.di_aformat)
197 #define XFS_IFORK_FMT_SET(ip,w,n) \
199 ((ip)->i_d.di_format = (n)) : \
200 ((ip)->i_d.di_aformat = (n)))
201 #define XFS_IFORK_NEXTENTS(ip,w) \
203 (ip)->i_d.di_nextents : \
204 (ip)->i_d.di_anextents)
205 #define XFS_IFORK_NEXT_SET(ip,w,n) \
207 ((ip)->i_d.di_nextents = (n)) : \
208 ((ip)->i_d.di_anextents = (n)))
268 #define XFS_ISIZE(ip) (((ip)->i_d.di_mode & S_IFMT) == S_IFREG) ? \
269 (ip)->i_size : (ip)->i_d.di_size;
278 static inline struct inode *VFS_I(struct xfs_inode *ip)
280 return &ip->i_vnode;
287 __xfs_iflags_set(xfs_inode_t *ip, unsigned short flags)
289 ip->i_flags |= flags;
293 xfs_iflags_set(xfs_inode_t *ip, unsigned short flags)
295 spin_lock(&ip->i_flags_lock);
296 __xfs_iflags_set(ip, flags);
297 spin_unlock(&ip->i_flags_lock);
301 xfs_iflags_clear(xfs_inode_t *ip, unsigned short flags)
303 spin_lock(&ip->i_flags_lock);
304 ip->i_flags &= ~flags;
305 spin_unlock(&ip->i_flags_lock);
309 __xfs_iflags_test(xfs_inode_t *ip, unsigned short flags)
311 return (ip->i_flags & flags);
315 xfs_iflags_test(xfs_inode_t *ip, unsigned short flags)
318 spin_lock(&ip->i_flags_lock);
319 ret = __xfs_iflags_test(ip, flags);
320 spin_unlock(&ip->i_flags_lock);
325 xfs_iflags_test_and_clear(xfs_inode_t *ip, unsigned short flags)
329 spin_lock(&ip->i_flags_lock);
330 ret = ip->i_flags & flags;
332 ip->i_flags &= ~flags;
333 spin_unlock(&ip->i_flags_lock);
342 static inline void xfs_iflock(xfs_inode_t *ip)
344 wait_for_completion(&ip->i_flush);
347 static inline int xfs_iflock_nowait(xfs_inode_t *ip)
349 return try_wait_for_completion(&ip->i_flush);
352 static inline void xfs_ifunlock(xfs_inode_t *ip)
354 complete(&ip->i_flush);
453 void xfs_inode_free(struct xfs_inode *ip);
482 #define IHOLD(ip) \
484 ASSERT(atomic_read(&VFS_I(ip)->i_count) > 0) ; \
485 atomic_inc(&(VFS_I(ip)->i_count)); \
486 trace_xfs_ihold(ip, _THIS_IP_); \
489 #define IRELE(ip) \
491 trace_xfs_irele(ip, _THIS_IP_); \
492 iput(VFS_I(ip)); \
543 #define xfs_ipincount(ip) ((unsigned int) atomic_read(&ip->i_pincount))
549 #define xfs_isize_check(mp, ip, isize)