Lines Matching refs:req
42 struct ocfs2_info_request __user *req) in o2info_set_request_error() argument
45 (void)put_user(kreq->ir_flags, (__u32 __user *)&(req->ir_flags)); in o2info_set_request_error()
48 static inline void o2info_set_request_filled(struct ocfs2_info_request *req) in o2info_set_request_filled() argument
50 req->ir_flags |= OCFS2_INFO_FL_FILLED; in o2info_set_request_filled()
53 static inline void o2info_clear_request_filled(struct ocfs2_info_request *req) in o2info_clear_request_filled() argument
55 req->ir_flags &= ~OCFS2_INFO_FL_FILLED; in o2info_clear_request_filled()
58 static inline int o2info_coherent(struct ocfs2_info_request *req) in o2info_coherent() argument
60 return (!(req->ir_flags & OCFS2_INFO_FL_NON_COHERENT)); in o2info_coherent()
146 struct ocfs2_info_request __user *req) in ocfs2_info_handle_blocksize() argument
150 if (o2info_from_user(oib, req)) in ocfs2_info_handle_blocksize()
157 if (o2info_to_user(oib, req)) in ocfs2_info_handle_blocksize()
164 struct ocfs2_info_request __user *req) in ocfs2_info_handle_clustersize() argument
169 if (o2info_from_user(oic, req)) in ocfs2_info_handle_clustersize()
176 if (o2info_to_user(oic, req)) in ocfs2_info_handle_clustersize()
183 struct ocfs2_info_request __user *req) in ocfs2_info_handle_maxslots() argument
188 if (o2info_from_user(oim, req)) in ocfs2_info_handle_maxslots()
195 if (o2info_to_user(oim, req)) in ocfs2_info_handle_maxslots()
202 struct ocfs2_info_request __user *req) in ocfs2_info_handle_label() argument
207 if (o2info_from_user(oil, req)) in ocfs2_info_handle_label()
214 if (o2info_to_user(oil, req)) in ocfs2_info_handle_label()
221 struct ocfs2_info_request __user *req) in ocfs2_info_handle_uuid() argument
226 if (o2info_from_user(oiu, req)) in ocfs2_info_handle_uuid()
233 if (o2info_to_user(oiu, req)) in ocfs2_info_handle_uuid()
240 struct ocfs2_info_request __user *req) in ocfs2_info_handle_fs_features() argument
245 if (o2info_from_user(oif, req)) in ocfs2_info_handle_fs_features()
254 if (o2info_to_user(oif, req)) in ocfs2_info_handle_fs_features()
261 struct ocfs2_info_request __user *req) in ocfs2_info_handle_journal_size() argument
266 if (o2info_from_user(oij, req)) in ocfs2_info_handle_journal_size()
273 if (o2info_to_user(oij, req)) in ocfs2_info_handle_journal_size()
328 struct ocfs2_info_request __user *req) in ocfs2_info_handle_freeinode() argument
345 if (o2info_from_user(*oifi, req)) { in ocfs2_info_handle_freeinode()
386 if (o2info_to_user(*oifi, req)) { in ocfs2_info_handle_freeinode()
394 o2info_set_request_error(&oifi->ifi_req, req); in ocfs2_info_handle_freeinode()
616 struct ocfs2_info_request __user *req) in ocfs2_info_handle_freefrag() argument
633 if (o2info_from_user(*oiff, req)) { in ocfs2_info_handle_freefrag()
673 if (o2info_to_user(*oiff, req)) { in ocfs2_info_handle_freefrag()
681 o2info_set_request_error(&oiff->iff_req, req); in ocfs2_info_handle_freefrag()
689 struct ocfs2_info_request __user *req) in ocfs2_info_handle_unknown() argument
693 if (o2info_from_user(oir, req)) in ocfs2_info_handle_unknown()
698 if (o2info_to_user(oir, req)) in ocfs2_info_handle_unknown()
712 struct ocfs2_info_request __user *req) in ocfs2_info_handle_request() argument
717 if (o2info_from_user(oir, req)) in ocfs2_info_handle_request()
727 status = ocfs2_info_handle_blocksize(inode, req); in ocfs2_info_handle_request()
731 status = ocfs2_info_handle_clustersize(inode, req); in ocfs2_info_handle_request()
735 status = ocfs2_info_handle_maxslots(inode, req); in ocfs2_info_handle_request()
739 status = ocfs2_info_handle_label(inode, req); in ocfs2_info_handle_request()
743 status = ocfs2_info_handle_uuid(inode, req); in ocfs2_info_handle_request()
747 status = ocfs2_info_handle_fs_features(inode, req); in ocfs2_info_handle_request()
751 status = ocfs2_info_handle_journal_size(inode, req); in ocfs2_info_handle_request()
755 status = ocfs2_info_handle_freeinode(inode, req); in ocfs2_info_handle_request()
759 status = ocfs2_info_handle_freefrag(inode, req); in ocfs2_info_handle_request()
762 status = ocfs2_info_handle_unknown(inode, req); in ocfs2_info_handle_request()