/fs/xfs/libxfs/ |
D | xfs_trans_space.h | 28 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument 29 #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\ argument 32 XFS_EXTENTADD_SPACE_RES(mp,w)) 35 #define XFS_SWAP_RMAP_SPACE_RES(mp,b,w)\ argument 36 (XFS_NEXTENTADD_SPACE_RES((mp), (b), (w)) + \ 39 #define XFS_DAENTER_1B(mp,w) \ argument 40 ((w) == XFS_DATA_FORK ? (mp)->m_dir_geo->fsbcount : 1) 41 #define XFS_DAENTER_DBS(mp,w) \ argument 42 (XFS_DA_NODE_MAXDEPTH + (((w) == XFS_DATA_FORK) ? 2 : 0)) 43 #define XFS_DAENTER_BLOCKS(mp,w) \ argument [all …]
|
D | xfs_inode_fork.h | 42 #define XFS_IFORK_PTR(ip,w) \ argument 43 ((w) == XFS_DATA_FORK ? \ 45 ((w) == XFS_ATTR_FORK ? \ 57 #define XFS_IFORK_SIZE(ip,w) \ argument 58 ((w) == XFS_DATA_FORK ? \ 60 ((w) == XFS_ATTR_FORK ? \ 63 #define XFS_IFORK_FORMAT(ip,w) \ argument 64 ((w) == XFS_DATA_FORK ? \ 66 ((w) == XFS_ATTR_FORK ? \ 69 #define XFS_IFORK_FMT_SET(ip,w,n) \ argument [all …]
|
D | xfs_bit.h | 50 uint32_t w = (uint32_t)v; in xfs_lowbit64() local 53 if (w) { /* lower bits */ in xfs_lowbit64() 54 n = ffs(w); in xfs_lowbit64() 56 w = (uint32_t)(v >> 32); in xfs_lowbit64() 57 if (w) { in xfs_lowbit64() 58 n = ffs(w); in xfs_lowbit64()
|
D | xfs_format.h | 966 #define XFS_DFORK_SIZE(dip,mp,w) \ argument 967 ((w) == XFS_DATA_FORK ? \ 971 #define XFS_DFORK_MAXEXT(dip, mp, w) \ argument 972 (XFS_DFORK_SIZE(dip, mp, w) / sizeof(struct xfs_bmbt_rec)) 981 #define XFS_DFORK_PTR(dip,w) \ argument 982 ((w) == XFS_DATA_FORK ? XFS_DFORK_DPTR(dip) : XFS_DFORK_APTR(dip)) 984 #define XFS_DFORK_FORMAT(dip,w) \ argument 985 ((w) == XFS_DATA_FORK ? \ 988 #define XFS_DFORK_NEXTENTS(dip,w) \ argument 989 ((w) == XFS_DATA_FORK ? \ [all …]
|
D | xfs_log_format.h | 350 static inline int xfs_ilog_fbroot(int w) in xfs_ilog_fbroot() argument 352 return (w == XFS_DATA_FORK ? XFS_ILOG_DBROOT : XFS_ILOG_ABROOT); in xfs_ilog_fbroot() 355 static inline int xfs_ilog_fext(int w) in xfs_ilog_fext() argument 357 return (w == XFS_DATA_FORK ? XFS_ILOG_DEXT : XFS_ILOG_AEXT); in xfs_ilog_fext() 360 static inline int xfs_ilog_fdata(int w) in xfs_ilog_fdata() argument 362 return (w == XFS_DATA_FORK ? XFS_ILOG_DDATA : XFS_ILOG_ADATA); in xfs_ilog_fdata()
|
D | xfs_bmap.h | 118 static inline int xfs_bmapi_aflag(int w) in xfs_bmapi_aflag() argument 120 return (w == XFS_ATTR_FORK ? XFS_BMAPI_ATTRFORK : in xfs_bmapi_aflag() 121 (w == XFS_COW_FORK ? XFS_BMAPI_COWFORK : 0)); in xfs_bmapi_aflag()
|
D | xfs_bmap_btree.h | 82 #define XFS_BM_MAXLEVELS(mp,w) ((mp)->m_bm_maxlevels[(w)]) argument
|
D | xfs_da_btree.c | 2067 int w = args->whichfork; in xfs_da_grow_inode_int() local 2075 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int() 2084 xfs_bmapi_aflag(w)|XFS_BMAPI_METADATA|XFS_BMAPI_CONTIG, in xfs_da_grow_inode_int() 2106 xfs_bmapi_aflag(w)|XFS_BMAPI_METADATA, in xfs_da_grow_inode_int() 2198 int w; in xfs_da3_swap_lastblock() local 2209 w = args->whichfork; in xfs_da3_swap_lastblock() 2210 ASSERT(w == XFS_DATA_FORK); in xfs_da3_swap_lastblock() 2213 error = xfs_bmap_last_before(tp, dp, &lastoff, w); in xfs_da3_swap_lastblock() 2225 error = xfs_da3_node_read(tp, dp, last_blkno, -1, &last_buf, w); in xfs_da3_swap_lastblock() 2261 error = xfs_da3_node_read(tp, dp, sib_blkno, -1, &sib_buf, w); in xfs_da3_swap_lastblock() [all …]
|
/fs/fat/ |
D | namei_vfat.c | 203 static inline wchar_t vfat_bad_char(wchar_t w) in vfat_bad_char() argument 205 return (w < 0x0020) in vfat_bad_char() 206 || (w == '*') || (w == '?') || (w == '<') || (w == '>') in vfat_bad_char() 207 || (w == '|') || (w == '"') || (w == ':') || (w == '/') in vfat_bad_char() 208 || (w == '\\'); in vfat_bad_char() 211 static inline wchar_t vfat_replace_char(wchar_t w) in vfat_replace_char() argument 213 return (w == '[') || (w == ']') || (w == ';') || (w == ',') in vfat_replace_char() 214 || (w == '+') || (w == '='); in vfat_replace_char() 217 static wchar_t vfat_skip_char(wchar_t w) in vfat_skip_char() argument 219 return (w == '.') || (w == ' '); in vfat_skip_char()
|
/fs/hostfs/ |
D | hostfs_user.c | 55 int access_file(char *path, int r, int w, int x) in access_file() argument 61 if (w) in access_file() 70 int open_file(char *path, int r, int w, int append) in open_file() argument 74 if (r && !w) in open_file() 76 else if (!r && w) in open_file() 78 else if (r && w) in open_file()
|
D | hostfs.h | 67 extern int access_file(char *path, int r, int w, int x); 68 extern int open_file(char *path, int r, int w, int append);
|
D | hostfs_kern.c | 304 int r, w, fd; in hostfs_open() local 313 r = w = 0; in hostfs_open() 318 r = w = 1; in hostfs_open() 324 fd = open_file(name, r, w, append); in hostfs_open() 765 int r = 0, w = 0, x = 0, err; in hostfs_permission() local 771 if (desired & MAY_WRITE) w = 1; in hostfs_permission() 781 err = access_file(name, r, w, x); in hostfs_permission()
|
/fs/nfsd/ |
D | nfs3acl.c | 183 int w; in nfs3svc_encode_getaclres() local 190 rqstp->rq_res.page_len = w = nfsacl_size( in nfs3svc_encode_getaclres() 193 while (w > 0) { in nfs3svc_encode_getaclres() 196 w -= PAGE_SIZE; in nfs3svc_encode_getaclres()
|
D | nfs2acl.c | 269 int w; in nfsaclsvc_encode_getaclres() local 286 rqstp->rq_res.page_len = w = nfsacl_size( in nfsaclsvc_encode_getaclres() 289 while (w > 0) { in nfsaclsvc_encode_getaclres() 292 w -= PAGE_SIZE; in nfsaclsvc_encode_getaclres()
|
D | nfs4xdr.c | 823 u32 w; in nfsd4_decode_share_access() local 826 w = be32_to_cpup(p++); in nfsd4_decode_share_access() 827 *share_access = w & NFS4_SHARE_ACCESS_MASK; in nfsd4_decode_share_access() 828 *deleg_want = w & NFS4_SHARE_WANT_MASK; in nfsd4_decode_share_access() 830 *deleg_when = w & NFS4_SHARE_WHEN_MASK; in nfsd4_decode_share_access() 832 switch (w & NFS4_SHARE_ACCESS_MASK) { in nfsd4_decode_share_access() 840 w &= ~NFS4_SHARE_ACCESS_MASK; in nfsd4_decode_share_access() 841 if (!w) in nfsd4_decode_share_access() 845 switch (w & NFS4_SHARE_WANT_MASK) { in nfsd4_decode_share_access() 856 w &= ~NFS4_SHARE_WANT_MASK; in nfsd4_decode_share_access() [all …]
|
/fs/jfs/ |
D | jfs_dmap.c | 2714 int budsz, bud, w, bsz, size; in dbBackSplit() local 2745 for (w = leafno, bsz = budsz;; bsz <<= 1, in dbBackSplit() 2746 w = (w < bud) ? w : bud) { in dbBackSplit() 2754 bud = w ^ bsz; in dbBackSplit() 3736 int blkno, w, b, r, nw, nb, i; in dbInitDmap() local 3756 w = blkno >> L2DBWORD; in dbInitDmap() 3772 dp->wmap[w] &= cpu_to_le32(~(ONES << (DBWORD - nb) in dbInitDmap() 3774 dp->pmap[w] &= cpu_to_le32(~(ONES << (DBWORD - nb) in dbInitDmap() 3778 w++; in dbInitDmap() 3782 memset(&dp->wmap[w], 0, nw * 4); in dbInitDmap() [all …]
|
/fs/xfs/ |
D | xfs_bmap_util.c | 1772 int w = XFS_DATA_FORK; in xfs_swap_extents() local 1773 uint32_t ipnext = XFS_IFORK_NEXTENTS(ip, w); in xfs_swap_extents() 1774 uint32_t tipnext = XFS_IFORK_NEXTENTS(tip, w); in xfs_swap_extents() 1781 resblks = XFS_SWAP_RMAP_SPACE_RES(mp, ipnext, w); in xfs_swap_extents() 1782 resblks += XFS_SWAP_RMAP_SPACE_RES(mp, tipnext, w); in xfs_swap_extents() 1790 if (ipnext == (XFS_IFORK_MAXEXT(ip, w) + 1)) in xfs_swap_extents() 1791 resblks += XFS_IFORK_MAXEXT(ip, w); in xfs_swap_extents() 1792 if (tipnext == (XFS_IFORK_MAXEXT(tip, w) + 1)) in xfs_swap_extents() 1793 resblks += XFS_IFORK_MAXEXT(tip, w); in xfs_swap_extents()
|
/fs/dlm/ |
D | member.c | 387 int i, w, x = 0, total = 0, all_zero = 0, *array; in make_member_array() local 414 w = 1; in make_member_array() 416 w = memb->weight; in make_member_array() 420 for (i = 0; i < w; i++) in make_member_array()
|
/fs/ceph/ |
D | super.h | 679 int w = __ceph_caps_file_wanted(ci) | __ceph_caps_used(ci); in __ceph_caps_wanted() local 680 if (w & CEPH_CAP_FILE_BUFFER) in __ceph_caps_wanted() 681 w |= CEPH_CAP_FILE_EXCL; /* we want EXCL if dirty data */ in __ceph_caps_wanted() 682 return w; in __ceph_caps_wanted()
|
/fs/ |
D | fs-writeback.c | 2158 static void wakeup_dirtytime_writeback(struct work_struct *w); 2161 static void wakeup_dirtytime_writeback(struct work_struct *w) in wakeup_dirtytime_writeback() argument
|