Home
last modified time | relevance | path

Searched refs:w (Results 1 – 20 of 20) sorted by relevance

/fs/xfs/libxfs/
Dxfs_trans_space.h28 #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 …]
Dxfs_inode_fork.h42 #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 …]
Dxfs_bit.h50 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()
Dxfs_format.h966 #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 …]
Dxfs_log_format.h350 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()
Dxfs_bmap.h118 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()
Dxfs_bmap_btree.h82 #define XFS_BM_MAXLEVELS(mp,w) ((mp)->m_bm_maxlevels[(w)]) argument
Dxfs_da_btree.c2067 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/
Dnamei_vfat.c203 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/
Dhostfs_user.c55 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()
Dhostfs.h67 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);
Dhostfs_kern.c304 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/
Dnfs3acl.c183 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()
Dnfs2acl.c269 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()
Dnfs4xdr.c823 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/
Djfs_dmap.c2714 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/
Dxfs_bmap_util.c1772 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/
Dmember.c387 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/
Dsuper.h679 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/
Dfs-writeback.c2158 static void wakeup_dirtytime_writeback(struct work_struct *w);
2161 static void wakeup_dirtytime_writeback(struct work_struct *w) in wakeup_dirtytime_writeback() argument