Home
last modified time | relevance | path

Searched refs:w (Results 1 – 23 of 23) 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_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_inode_fork.h97 #define XFS_IFORK_PTR(ip,w) \ argument
98 ((w) == XFS_DATA_FORK ? \
100 ((w) == XFS_ATTR_FORK ? \
107 #define XFS_IFORK_SIZE(ip,w) \ argument
108 ((w) == XFS_DATA_FORK ? \
110 ((w) == XFS_ATTR_FORK ? \
113 #define XFS_IFORK_MAXEXT(ip, w) \ argument
114 (XFS_IFORK_SIZE(ip, w) / sizeof(xfs_bmbt_rec_t))
Dxfs_format.h899 #define XFS_DFORK_SIZE(dip,mp,w) \ argument
900 ((w) == XFS_DATA_FORK ? \
904 #define XFS_DFORK_MAXEXT(dip, mp, w) \ argument
905 (XFS_DFORK_SIZE(dip, mp, w) / sizeof(struct xfs_bmbt_rec))
914 #define XFS_DFORK_PTR(dip,w) \ argument
915 ((w) == XFS_DATA_FORK ? XFS_DFORK_DPTR(dip) : XFS_DFORK_APTR(dip))
917 #define XFS_DFORK_FORMAT(dip,w) \ argument
918 ((w) == XFS_DATA_FORK ? \
921 #define XFS_DFORK_NEXTENTS(dip,w) \ argument
922 ((w) == XFS_DATA_FORK ? \
[all …]
Dxfs_log_format.h347 static inline int xfs_ilog_fbroot(int w) in xfs_ilog_fbroot() argument
349 return (w == XFS_DATA_FORK ? XFS_ILOG_DBROOT : XFS_ILOG_ABROOT); in xfs_ilog_fbroot()
352 static inline int xfs_ilog_fext(int w) in xfs_ilog_fext() argument
354 return (w == XFS_DATA_FORK ? XFS_ILOG_DEXT : XFS_ILOG_AEXT); in xfs_ilog_fext()
357 static inline int xfs_ilog_fdata(int w) in xfs_ilog_fdata() argument
359 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.c2147 int w = args->whichfork; in xfs_da_grow_inode_int() local
2155 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int()
2164 xfs_bmapi_aflag(w)|XFS_BMAPI_METADATA|XFS_BMAPI_CONTIG, in xfs_da_grow_inode_int()
2186 xfs_bmapi_aflag(w)|XFS_BMAPI_METADATA, in xfs_da_grow_inode_int()
2278 int w; in xfs_da3_swap_lastblock() local
2289 w = args->whichfork; in xfs_da3_swap_lastblock()
2290 ASSERT(w == XFS_DATA_FORK); in xfs_da3_swap_lastblock()
2293 error = xfs_bmap_last_before(tp, dp, &lastoff, w); in xfs_da3_swap_lastblock()
2302 error = xfs_da3_node_read(tp, dp, last_blkno, &last_buf, w); in xfs_da3_swap_lastblock()
2339 error = xfs_da3_node_read(tp, dp, sib_blkno, &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.h71 extern int access_file(char *path, int r, int w, int x);
72 extern int open_file(char *path, int r, int w, int append);
Dhostfs_kern.c303 int r, w, fd; in hostfs_open() local
312 r = w = 0; in hostfs_open()
317 r = w = 1; in hostfs_open()
323 fd = open_file(name, r, w, append); in hostfs_open()
768 int r = 0, w = 0, x = 0, err; in hostfs_permission() local
774 if (desired & MAY_WRITE) w = 1; in hostfs_permission()
784 err = access_file(name, r, w, x); in hostfs_permission()
/fs/nfsd/
Dnfs3acl.c178 int w; in nfs3svc_encode_getaclres() local
192 rqstp->rq_res.page_len = w = nfsacl_size( in nfs3svc_encode_getaclres()
195 while (w > 0) { in nfs3svc_encode_getaclres()
198 w -= PAGE_SIZE; in nfs3svc_encode_getaclres()
Dnfs4xdr.c1030 u32 w; in nfsd4_decode_share_access() local
1032 if (xdr_stream_decode_u32(argp->xdr, &w) < 0) in nfsd4_decode_share_access()
1034 *share_access = w & NFS4_SHARE_ACCESS_MASK; in nfsd4_decode_share_access()
1035 *deleg_want = w & NFS4_SHARE_WANT_MASK; in nfsd4_decode_share_access()
1037 *deleg_when = w & NFS4_SHARE_WHEN_MASK; in nfsd4_decode_share_access()
1039 switch (w & NFS4_SHARE_ACCESS_MASK) { in nfsd4_decode_share_access()
1047 w &= ~NFS4_SHARE_ACCESS_MASK; in nfsd4_decode_share_access()
1048 if (!w) in nfsd4_decode_share_access()
1052 switch (w & NFS4_SHARE_WANT_MASK) { in nfsd4_decode_share_access()
1063 w &= ~NFS4_SHARE_WANT_MASK; in nfsd4_decode_share_access()
[all …]
/fs/fuse/
Dvirtio_fs.c589 struct virtio_fs_req_work *w = in virtio_fs_complete_req_work() local
590 container_of(work, typeof(*w), done_work); in virtio_fs_complete_req_work()
592 virtio_fs_request_complete(w->req, w->fsvq); in virtio_fs_complete_req_work()
593 kfree(w); in virtio_fs_complete_req_work()
626 struct virtio_fs_req_work *w; in virtio_fs_requests_done_work() local
628 w = kzalloc(sizeof(*w), GFP_NOFS | __GFP_NOFAIL); in virtio_fs_requests_done_work()
629 INIT_WORK(&w->done_work, virtio_fs_complete_req_work); in virtio_fs_requests_done_work()
630 w->fsvq = fsvq; in virtio_fs_requests_done_work()
631 w->req = req; in virtio_fs_requests_done_work()
632 schedule_work(&w->done_work); in virtio_fs_requests_done_work()
/fs/jfs/
Djfs_dmap.c2759 int budsz, bud, w, bsz, size; in dbBackSplit() local
2790 for (w = leafno, bsz = budsz;; bsz <<= 1, in dbBackSplit()
2791 w = (w < bud) ? w : bud) { in dbBackSplit()
2799 bud = w ^ bsz; in dbBackSplit()
3792 int blkno, w, b, r, nw, nb, i; in dbInitDmap() local
3812 w = blkno >> L2DBWORD; in dbInitDmap()
3828 dp->wmap[w] &= cpu_to_le32(~(ONES << (DBWORD - nb) in dbInitDmap()
3830 dp->pmap[w] &= cpu_to_le32(~(ONES << (DBWORD - nb) in dbInitDmap()
3834 w++; in dbInitDmap()
3838 memset(&dp->wmap[w], 0, nw * 4); in dbInitDmap()
[all …]
/fs/dlm/
Dmember.c397 int i, w, x = 0, total = 0, all_zero = 0, *array; in make_member_array() local
424 w = 1; in make_member_array()
426 w = memb->weight; in make_member_array()
430 for (i = 0; i < w; i++) in make_member_array()
/fs/xfs/
Dxfs_bmap_util.c1679 int w = XFS_DATA_FORK; in xfs_swap_extents() local
1688 resblks = XFS_SWAP_RMAP_SPACE_RES(mp, ipnext, w); in xfs_swap_extents()
1689 resblks += XFS_SWAP_RMAP_SPACE_RES(mp, tipnext, w); in xfs_swap_extents()
/fs/ntfs3/
Dntfs_fs.h554 #define _ni_write_inode(i, w) ni_write_inode(i, w, __func__) argument
/fs/ceph/
Dcaps.c1052 int w = __ceph_caps_file_wanted(ci) | __ceph_caps_used(ci); in __ceph_caps_wanted() local
1055 if (w & CEPH_CAP_ANY_DIR_OPS) in __ceph_caps_wanted()
1056 w |= CEPH_CAP_FILE_EXCL; in __ceph_caps_wanted()
1059 if (w & CEPH_CAP_FILE_BUFFER) in __ceph_caps_wanted()
1060 w |= CEPH_CAP_FILE_EXCL; in __ceph_caps_wanted()
1062 return w; in __ceph_caps_wanted()
/fs/ksmbd/
Dtransport_ipc.c839 static void ipc_timer_heartbeat(struct work_struct *w) in ipc_timer_heartbeat() argument
Dsmb2pdu.c53 #define WORK_BUFFERS(w, rq, rs) __wbuf((w), (void **)&(rq), (void **)&(rs)) argument
/fs/
Dfs-writeback.c2368 static void wakeup_dirtytime_writeback(struct work_struct *w);
2371 static void wakeup_dirtytime_writeback(struct work_struct *w) in wakeup_dirtytime_writeback() argument