Lines Matching full:status

66 	int status;  in ocfs2_get_inode_attr()  local
68 status = ocfs2_inode_lock(inode, NULL, 0); in ocfs2_get_inode_attr()
69 if (status < 0) { in ocfs2_get_inode_attr()
70 mlog_errno(status); in ocfs2_get_inode_attr()
71 return status; in ocfs2_get_inode_attr()
77 return status; in ocfs2_get_inode_attr()
88 int status; in ocfs2_set_inode_attr() local
92 status = ocfs2_inode_lock(inode, &bh, 1); in ocfs2_set_inode_attr()
93 if (status < 0) { in ocfs2_set_inode_attr()
94 mlog_errno(status); in ocfs2_set_inode_attr()
98 status = -EACCES; in ocfs2_set_inode_attr()
109 status = vfs_ioc_setflags_prepare(inode, oldflags, flags); in ocfs2_set_inode_attr()
110 if (status) in ocfs2_set_inode_attr()
115 status = PTR_ERR(handle); in ocfs2_set_inode_attr()
116 mlog_errno(status); in ocfs2_set_inode_attr()
123 status = ocfs2_mark_inode_dirty(handle, inode, bh); in ocfs2_set_inode_attr()
124 if (status < 0) in ocfs2_set_inode_attr()
125 mlog_errno(status); in ocfs2_set_inode_attr()
136 return status; in ocfs2_set_inode_attr()
278 int status = 0, unlock = 0; in ocfs2_info_scan_inode_alloc() local
287 status = ocfs2_inode_lock(inode_alloc, &bh, 0); in ocfs2_info_scan_inode_alloc()
288 if (status < 0) { in ocfs2_info_scan_inode_alloc()
289 mlog_errno(status); in ocfs2_info_scan_inode_alloc()
294 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); in ocfs2_info_scan_inode_alloc()
295 if (status < 0) { in ocfs2_info_scan_inode_alloc()
296 mlog_errno(status); in ocfs2_info_scan_inode_alloc()
318 return status; in ocfs2_info_scan_inode_alloc()
327 int status, type = INODE_ALLOC_SYSTEM_INODE; in ocfs2_info_handle_freeinode() local
334 status = -ENOMEM; in ocfs2_info_handle_freeinode()
335 mlog_errno(status); in ocfs2_info_handle_freeinode()
340 status = -EFAULT; in ocfs2_info_handle_freeinode()
352 status = -EIO; in ocfs2_info_handle_freeinode()
359 status = ocfs2_lookup_ino_from_name(osb->sys_root_inode, in ocfs2_info_handle_freeinode()
363 if (status < 0) { in ocfs2_info_handle_freeinode()
364 status = -ENOENT; in ocfs2_info_handle_freeinode()
369 status = ocfs2_info_scan_inode_alloc(osb, inode_alloc, blkno, oifi, i); in ocfs2_info_handle_freeinode()
374 if (status < 0) in ocfs2_info_handle_freeinode()
381 status = -EFAULT; in ocfs2_info_handle_freeinode()
385 status = 0; in ocfs2_info_handle_freeinode()
387 if (status) in ocfs2_info_handle_freeinode()
392 return status; in ocfs2_info_handle_freeinode()
435 int status = 0, used; in ocfs2_info_freefrag_scan_chain() local
460 status = ocfs2_read_group_descriptor(gb_inode, in ocfs2_info_freefrag_scan_chain()
464 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); in ocfs2_info_freefrag_scan_chain()
466 if (status < 0) { in ocfs2_info_freefrag_scan_chain()
469 status = -EIO; in ocfs2_info_freefrag_scan_chain()
528 return status; in ocfs2_info_freefrag_scan_chain()
536 int status = 0, unlock = 0, i; in ocfs2_info_freefrag_scan_bitmap() local
547 status = ocfs2_inode_lock(gb_inode, &bh, 0); in ocfs2_info_freefrag_scan_bitmap()
548 if (status < 0) { in ocfs2_info_freefrag_scan_bitmap()
549 mlog_errno(status); in ocfs2_info_freefrag_scan_bitmap()
554 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); in ocfs2_info_freefrag_scan_bitmap()
555 if (status < 0) { in ocfs2_info_freefrag_scan_bitmap()
556 mlog_errno(status); in ocfs2_info_freefrag_scan_bitmap()
569 status = -EINVAL; in ocfs2_info_freefrag_scan_bitmap()
585 status = ocfs2_info_freefrag_scan_chain(osb, gb_inode, in ocfs2_info_freefrag_scan_bitmap()
589 if (status) in ocfs2_info_freefrag_scan_bitmap()
606 return status; in ocfs2_info_freefrag_scan_bitmap()
614 int status, type = GLOBAL_BITMAP_SYSTEM_INODE; in ocfs2_info_handle_freefrag() local
622 status = -ENOMEM; in ocfs2_info_handle_freefrag()
623 mlog_errno(status); in ocfs2_info_handle_freefrag()
628 status = -EFAULT; in ocfs2_info_handle_freefrag()
636 status = -EINVAL; in ocfs2_info_handle_freefrag()
645 status = -EIO; in ocfs2_info_handle_freefrag()
651 status = ocfs2_lookup_ino_from_name(osb->sys_root_inode, in ocfs2_info_handle_freefrag()
655 if (status < 0) { in ocfs2_info_handle_freefrag()
656 status = -ENOENT; in ocfs2_info_handle_freefrag()
661 status = ocfs2_info_freefrag_scan_bitmap(osb, gb_inode, blkno, oiff); in ocfs2_info_handle_freefrag()
662 if (status < 0) in ocfs2_info_handle_freefrag()
668 status = -EFAULT; in ocfs2_info_handle_freefrag()
672 status = 0; in ocfs2_info_handle_freefrag()
674 if (status) in ocfs2_info_handle_freefrag()
679 return status; in ocfs2_info_handle_freefrag()
708 int status = -EFAULT; in ocfs2_info_handle_request() local
714 status = -EINVAL; in ocfs2_info_handle_request()
721 status = ocfs2_info_handle_blocksize(inode, req); in ocfs2_info_handle_request()
725 status = ocfs2_info_handle_clustersize(inode, req); in ocfs2_info_handle_request()
729 status = ocfs2_info_handle_maxslots(inode, req); in ocfs2_info_handle_request()
733 status = ocfs2_info_handle_label(inode, req); in ocfs2_info_handle_request()
737 status = ocfs2_info_handle_uuid(inode, req); in ocfs2_info_handle_request()
741 status = ocfs2_info_handle_fs_features(inode, req); in ocfs2_info_handle_request()
745 status = ocfs2_info_handle_journal_size(inode, req); in ocfs2_info_handle_request()
749 status = ocfs2_info_handle_freeinode(inode, req); in ocfs2_info_handle_request()
753 status = ocfs2_info_handle_freefrag(inode, req); in ocfs2_info_handle_request()
756 status = ocfs2_info_handle_unknown(inode, req); in ocfs2_info_handle_request()
761 return status; in ocfs2_info_handle_request()
767 int status = -EFAULT; in ocfs2_get_request_ptr() local
786 status = 0; in ocfs2_get_request_ptr()
788 return status; in ocfs2_get_request_ptr()
805 int i, status = 0; in ocfs2_info_handle() local
811 status = -EINVAL; in ocfs2_info_handle()
817 status = ocfs2_get_request_ptr(info, i, &req_addr, compat_flag); in ocfs2_info_handle()
818 if (status) in ocfs2_info_handle()
823 status = -EINVAL; in ocfs2_info_handle()
827 status = ocfs2_info_handle_request(inode, reqp); in ocfs2_info_handle()
828 if (status) in ocfs2_info_handle()
833 return status; in ocfs2_info_handle()
841 int status; in ocfs2_ioctl() local
853 status = ocfs2_get_inode_attr(inode, &flags); in ocfs2_ioctl()
854 if (status < 0) in ocfs2_ioctl()
855 return status; in ocfs2_ioctl()
863 status = mnt_want_write_file(filp); in ocfs2_ioctl()
864 if (status) in ocfs2_ioctl()
865 return status; in ocfs2_ioctl()
866 status = ocfs2_set_inode_attr(inode, flags, in ocfs2_ioctl()
869 return status; in ocfs2_ioctl()
885 status = mnt_want_write_file(filp); in ocfs2_ioctl()
886 if (status) in ocfs2_ioctl()
887 return status; in ocfs2_ioctl()
888 status = ocfs2_group_extend(inode, new_clusters); in ocfs2_ioctl()
890 return status; in ocfs2_ioctl()
899 status = mnt_want_write_file(filp); in ocfs2_ioctl()
900 if (status) in ocfs2_ioctl()
901 return status; in ocfs2_ioctl()
902 status = ocfs2_group_add(inode, &input); in ocfs2_ioctl()
904 return status; in ocfs2_ioctl()